path_set_kind

Sets the kind of connections of the path with the given index.

语法:

path_set_kind(index, val);


参数 描述
index The index of the path to change.
val The kind of the path, 0 for straight or 1 for smooth.


返回: N/A(无返回值)


描述

This function can be used to set the kind of path that you wish the specified resource to be. This can be either a straight line path (set to 0) or a smoothed path (set to 1) in which case the path precision has to be taken into account too (the precision can be set too using path_set_precision). This function changes the actual path resource, and so will permanently affect how the path is used by all instances in the game from the moment the function is used until the end of the game.




例如:

path_set_kind(path0, 1);

This will set path0 to be a smoothed path.


上一页: Changing Paths
下一页: path_set_precision
© Copyright YoYo Games Ltd. 2018 All Rights Reserved